home *** CD-ROM | disk | FTP | other *** search
- Path: alterdial.uu.net!not-for-mail
- From: John Goolsby <jgoolsby@jax-inter.net>
- Newsgroups: comp.lang.c++
- Subject: Custom Buttons
- Date: Wed, 27 Mar 1996 11:53:23 -0500
- Message-ID: <31597283.6BB1@jax-inter.net>
- NNTP-Posting-Host: ppp056.jax-inter.net
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0GoldB1 (Win95; I)
-
- I'm using Borland OWL Version 3 to create owner-drawable buttons from a
- main window and having a problem. The button appears with the backgrond
- color I define but with nothing drawn inside and does not function when
- I click it.
-
- A derive a new class from TButton and OR Attr.Style with BS_OWNERDRAW.
- Then I override GetClassName, GetWindowClass, ODADrawEntire, ODAFocus
- and ODASelect functions.
-
- The button does function if I return "BUTTON" in GetClassName. However,
- it does not display with the background color I define in
- GetWindowClass. Is this a Windows registration problem? I was told
- that OWL takes care of registration.
-
- Can someone give me some direction on this?
-
- John G.
-